package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("SELECT * FROM user where openid = #{opeid}")
    public User getByOpenId(String opeid);

    @Select("SELECT * FROM user where id =#{id}")
    public User getById(Long id);

    public void insert(User user);
}
